package jmine.tec.test.metric.performance;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

/**
 * Representa a tag success no xml de performance deve conter um ResultSuccess.
 * 
 * @author bruno.ortiz
 */
@XStreamAlias("success")
public class ResultSuccess implements ResultSuccessInterface {

    @SuppressWarnings("unused")
    @XStreamAlias("passed")
    @XStreamAsAttribute
    private String resultStatus;

    @SuppressWarnings("unused")
    @XStreamAlias("state")
    @XStreamAsAttribute
    private String resultState;

    /**
     * construtor.
     * 
     * @param resultStatus Representa o status da tag success no xml de performance.
     * @param resultState Representa o estado da tag success no xml de performance.
     */
    public ResultSuccess(String resultStatus, String resultState) {
        this.resultStatus = resultStatus;
        this.resultState = resultState;
    }

    /**
     * @param resultStatus the resultStatus to set
     */
    public void setResultStatus(String resultStatus) {
        this.resultStatus = resultStatus;
    }

    /**
     * @param resultState the resultState to set
     */
    public void setResultState(String resultState) {
        this.resultState = resultState;
    }

}
